package com.gaogzhen.security.syn;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "security.syn.LockObject")
public class LockObject {
    public static void main(String[] args) {
        Number6 n1 = new Number6();
        Number6 n2 = new Number6();
        new Thread(() -> {
            log.debug("begin");
            n1.a();
        }).start();

        new Thread(() -> {
            log.debug("begin");
            n2.b();
        }).start();
    }
}

